package com.zhanvie.singleton;

import java.util.concurrent.LinkedBlockingQueue;

public class QueueManager {

    private LinkedBlockingQueue<Runnable> threadQueue = new LinkedBlockingQueue<Runnable>(5000);

    public LinkedBlockingQueue<Runnable> getThreadQueue() {
        return threadQueue;
    }

    private static class SingletonInner {
        private static final QueueManager instance = new QueueManager();
    }

    public static QueueManager getInstance() {
        return SingletonInner.instance;
    }

}
